package com.faya.green;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.transaction.annotation.EnableTransactionManagement;

//表名这是入口
@SpringBootApplication
//扫描dao层，自动的mapper扫描
@MapperScan("com.faya.green.dao")
@EnableTransactionManagement // 启注解事务管理，等同于xml配置方式的 <tx:annotation-driven />，不配也有事务，但是加上安全点
public class GreenApplication {


    public static void main(String[] args) {
        //controller的代码必须和GreenApplication.java位于同级目录或之下
        SpringApplication.run(GreenApplication.class, args);
    }
}
